add another field in existing migration laravel

67

add another field in existing migration laravel -

php artisan make:migration add_paid_to_users_table --table=users

how set field after another field in migration in laravel -

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});

how add field to table by another migration in laravel -

php artisan make:migration add_store_id_to_users_table --table=users

Comments

Submit
0 Comments